//企业安全风险相关接口
//生产工艺及设备设施api
//导入request.js工具
import request from "@/utils/request";
//调用注册接口的函数

//工艺流程接口
//添加
export const saveSafetyRisk = (form) => {
    return request.post("/safety-risk", form);
};
//分页查询
export const querySafetyRisks = (pageNo, pageSize) => {
    return request.get("/safety-risk/page", {
        params: {
            pageNo,
            pageSize,
        },
    });
};
//根据id/name查询工艺流程
export const querySafetyRisk = (name) => {
    return request.get("/safety-risk", {
        params: {
            name
        }
    });
};
//批量删除工艺流程
export const deleteSafetyRisk = (ids) => {
    ids = ids.join(',');
    return request.delete(`/safety-risk/ids?ids=${ids}`);
};
//修改工艺流程
export const updateSafetyRisk = (form) => {
    return request.put("/safety-risk", form);
};